#pragma once
#include "interfaces.h"

#if defined(_DEBUG)
#	define ALE_NEW new(_NORMAL_BLOCK,__FILE__, __LINE__)
#else
#	define ALE_NEW new
#endif

#if !defined(SAFE_DELETE)
	#define SAFE_DELETE(x) if(x) delete x; x=NULL;
#endif

#if !defined(SAFE_DELETE_ARRAY)
	#define SAFE_DELETE_ARRAY(x) if (x) delete [] x; x=NULL; 
#endif

#if !defined(SAFE_RELEASE)
	#define SAFE_RELEASE(x) if(x) x->Release(); x=NULL;
#endif